<DatabaseDictionary xmlns="http://iringug.org/iringtools/library" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
  <connectionString>Data Source=.\SQLEXPRESS;Initial Catalog=hibernate;User Id=hibernate;Password=hibernate</connectionString>
  <provider>MSSQL</provider>
  <tables>
    <Table>
      <associations>
        <Association i:type="OneToOneAssociation">
          <associatedTableName>customers</associatedTableName>
          <constrained>false</constrained>
        </Association>
      </associations>
      <columns>
        <Column>
          <columnName>name</columnName>
          <columnType>String</columnType>
          <propertyName>Name</propertyName>
        </Column>
      </columns>
      <entityName>Person</entityName>
      <keys>
        <Key>
          <columnName>personId</columnName>
          <columnType>Int32</columnType>
          <propertyName i:nil="true"/>
          <keyType>identity</keyType>
        </Key>
      </keys>
      <lazyLoading>true</lazyLoading>
      <tableName>persons</tableName>
    </Table>
    <Table>
      <associations>
        <Association i:type="OneToOneAssociation">
          <associatedTableName>persons</associatedTableName>
          <constrained>true</constrained>
        </Association>
        <Association i:type="OneToManyAssociation">
          <associatedTableName>orders</associatedTableName>
          <associatedColumnName>custId</associatedColumnName>
        </Association>
      </associations>
      <columns>
        <Column>
          <columnName>login</columnName>
          <columnType>String</columnType>
          <propertyName>Login</propertyName>
        </Column>
      </columns>
      <entityName>Customer</entityName>
      <keys>
        <Key>
          <columnName>customerId</columnName>
          <columnType>Int32</columnType>
          <propertyName i:nil="true"/>
          <keyType>foreign</keyType>
        </Key>
      </keys>
      <lazyLoading>true</lazyLoading>
      <tableName>customers</tableName>
    </Table>
    <Table>
      <associations>
        <Association i:type="ManyToOneAssociation">
          <associatedTableName>customers</associatedTableName>
          <columnName>custId</columnName>
        </Association>
      </associations>
      <columns>
        <Column>
          <columnName>number</columnName>
          <columnType>Int32</columnType>
          <propertyName>Number</propertyName>
        </Column>
        <Column>
          <columnName>custId</columnName>
          <columnType>Int32</columnType>
          <propertyName>CustomerId</propertyName>
        </Column>
      </columns>
      <entityName>Order</entityName>
      <keys>
        <Key>
          <columnName>orderId</columnName>
          <columnType>Int32</columnType>
          <propertyName i:nil="true"/>
          <keyType>identity</keyType>
        </Key>
      </keys>
      <lazyLoading>true</lazyLoading>
      <tableName>orders</tableName>
    </Table>
    <Table>
      <associations i:nil="true"/>
      <columns>
        <Column>
          <columnName>imaginaryUnit</columnName>
          <columnType>Char</columnType>
          <propertyName>Unit</propertyName>
        </Column>
      </columns>
      <entityName>ComplexNumber</entityName>
      <keys>
        <Key>
          <columnName>realPart</columnName>
          <columnType>Double</columnType>
          <propertyName>Real</propertyName>
          <keyType>native</keyType>
        </Key>
        <Key>
          <columnName>imaginaryPart</columnName>
          <columnType>Double</columnType>
          <propertyName>Imaginary</propertyName>
          <keyType>native</keyType>
        </Key>
      </keys>
      <lazyLoading>true</lazyLoading>
      <tableName>complexNumbers</tableName>
    </Table>
  </tables>
</DatabaseDictionary>